package conlon.seata02.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import conlon.api.form.StoreForm;
import conlon.seata02.dao.StoreDao;
import conlon.seata02.entity.StoreEntity;
import conlon.seata02.service.StoreService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 用户信息 服务实现类
 * </p>
 *
 * @author conlon
 * @since 2021-08-16
 */
@Service
public class StoreServiceImpl extends ServiceImpl<StoreDao, StoreEntity> implements StoreService {


    @Override
    @Transactional(rollbackFor = Exception.class)
    public void createStore(StoreForm form) {
        this.save(new StoreEntity().setId(form.getId()).setStoreName(form.getStoreName()));
    }
}
